package com.jxd.project.menu.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

/**
 * @ClassName Application
 * @Description TODO
 * @Author 刘成
 * @Date 2025/9/25 14:04
 * @Version 1.0
 */
@Data
@TableName("brapplication")
public class Application {
    @TableId(value = "applicationid", type = IdType.AUTO)
    private int applicationId;
    @TableField("applicationname")
    private String applicationName;
    @TableField("applicationempno")
    private int applicationEmpNo;
    @TableField(exist = false)
    private String applicationEName;
    @TableField("deptno")
    private int deptNo;
    @TableField(exist = false)
    private String dName;
    @TableField("warehouseid")
    private int warehouseId;
    @TableField("applicationtime")
    private String applicationTime;
    @TableField("comment")
    private String comment;
    @TableField("borrowtype")
    private int borrowType;
    @TableField(exist = false)
    private String borrowTypeDESC;
    @TableField("auditorempno")
    private int auditEmpNo;
    @TableField(exist = false)
    private String auditEName;
    @TableField("checktype")
    private int checkType;
    @TableField(exist = false)
    private String checkTypeDESC;
    @TableField("bannedreason")
    private String bannedReason;
    @TableField("checktime")
    private String checkTime;
//    @TableField(exist = false)
//    private List<ApplicationGoods> applicationGoods;

    public Application(){}

    public Application(int applicationId, String applicationName, int applicationEmpNo,String applicationEName,
                       int deptNo,String dName, int warehouseId, String applicationTime, String comment,
                       int borrowType, int auditEmpNo,String auditEName, int checkType, String bannedReason, String checkTime){
        this.applicationId = applicationId;
        this.applicationName = applicationName;
        this.applicationEmpNo = applicationEmpNo;
        this.applicationEName = applicationEName;
        this.dName = dName;
        this.deptNo = deptNo;
        this.warehouseId = warehouseId;
        this.applicationTime = applicationTime;
        this.comment = comment;
        this.borrowType = borrowType;
        this.auditEmpNo = auditEmpNo;
        this.auditEName = auditEName;
        this.checkType = checkType;
        this.bannedReason = bannedReason;
        this.checkTime = checkTime;
    }


}
